<template>
    <div>
        <Header></Header>
        <router-view></router-view>
        <!-- <Footer v-if="$route.path != '/login' && $route.path != '/register'"></Footer> -->
        <Footer v-if="!$route.meta.isHidden"></Footer>
    </div>
</template>

<script>
import Header from "@/components/Header"
import Footer from "@/components/Footer"
import { mapActions } from 'vuex'
export default {
    name: "App",
    components: {
        Header,
        Footer
    },
    watch: {
        $route:{
            handler(newval) {
                console.log(newval);
            },
            deep:true
        }
    },
    mounted () {
        this.getCategoryList();
    },
    methods: {
        ...mapActions(["getCategoryList"])
    }
}
</script>

<style scoped>

</style>